<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>运用</title>
  </head>
  <style>
    ul {
      list-style-type: none;
    }
    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .subgrid .box {
      aspect-ratio: 1 / 1;
      width: 100%;
      object-fit: contain;
      /* background-color: red; */
      border: 1px solid #dedede;
      /* height: 30px; */
    }
  </style>
  <body>
    <div class="grid">
      <div class="subgrid"><div class="box"></div></div>
      <div class="subgrid"><div class="box"></div></div>
    </div>
  </body>
</html>
